package org.me.marble;

import android.graphics.*;

import android.view.View;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.widget.TextView;

/**
 * 
 * @author tungi
 */

public class ScoreActivity extends Activity{

	@Override
	public void onCreate(Bundle icycle){
		super.onCreate(icycle);
		
        getWindow().setBackgroundDrawable(new BackgroundImage(this,
                R.drawable.background_main2,Color.BLACK,0.5,0.5).getCurrent());
        getWindow().setFormat(PixelFormat.RGBA_8888);
        
        setContentView(R.layout.score);
        
        TextView tv;
        tv=(TextView)findViewById(R.text.normalscore);
        tv.setText(Integer.toString(OptionsLibrary.bestNormal)+" points");
        tv=(TextView)findViewById(R.text.pointscore);
        tv.setText(Integer.toString(OptionsLibrary.bestPoint)+" points");
        tv=(TextView)findViewById(R.text.timescore);
        tv.setText(Float.toString(OptionsLibrary.bestTime)+" sec");
	}
	
	public void detailsClick(View view){
		Intent intent=new Intent(this,DetailsActivity.class);
        startActivity(intent);
	}
}
